package gov.pr.celepar.sentinela.admin.dao;

import gov.pr.celepar.sentinela.admin.excecao.SentinelaServerException;
import gov.pr.celepar.sentinela.admin.pojo.RestricaoIP;
import gov.pr.celepar.sentinela.admin.pojo.RestricaoIPGrupoSistema;
import gov.pr.celepar.sentinela.admin.pojo.RestricaoIPSistema;

import java.util.Collection;

public interface RestricaoIPDAO {

	public Collection<RestricaoIP> listarRestricoesIPSistema(Long codSistema)
			throws SentinelaServerException, Exception;

	public Collection<RestricaoIP> listarRestricoesIPGrupoSistema(
			Long codSistema) throws SentinelaServerException, Exception;

	public void incluir(RestricaoIPSistema restricaoSistema)
			throws SentinelaServerException, Exception;

	public RestricaoIPSistema obterRestricaoIPSistema(Long codRestricao,
			Long codSistema) throws SentinelaServerException, Exception;

	public void alterar(RestricaoIPSistema restricaoIPSistema)
			throws SentinelaServerException, Exception;

	public void excluir(RestricaoIPSistema restricaoIPSistema)
			throws SentinelaServerException, Exception;

	public void incluir(RestricaoIPGrupoSistema restricaoIPGrupo)
			throws SentinelaServerException, Exception;

	public RestricaoIPGrupoSistema obterRestricaoIPGrupo(Long codRestricao,
			Long codSistema) throws SentinelaServerException, Exception;

	public void alterar(RestricaoIPGrupoSistema restricaoIPGrupo)
			throws SentinelaServerException, Exception;

	public void excluir(RestricaoIPGrupoSistema restricaoIPGrupo)
			throws SentinelaServerException, Exception;
}
